<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


<div class="navbar navbar-inverse navbar-static-top" role="navigation">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
				data-target=".navbar-collapse">
				<span class="sr-only">Toggle navigation</span> <span
					class="icon-bar"></span> <span class="icon-bar"></span> <span
					class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#">My Car E-Shopee</a>
		</div>
		<div class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li class="active"><a href="index.jsp">Home</a></li>
				<li><a href="aboutus.jsp"> About Us</a></li>
				<li><a href="contactus.jsp">Contact Us</a></li>
				<li class="dropdown"><a href="#" class="dropdown-toggle"
					data-toggle="dropdown">Search <b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="searchAll">Search All Inventory</a></li>
						<li class="divider"></li>
						<li><a href="productLines">Show all Categories</a></li>
						<li class="divider"></li>
						<li><a href="search.jsp">Advanced Search</a></li>

					</ul></li>
				<c:if test="${not(empty sessionScope.customer)}">
					<li><a href="myCars"> My Cars</a></li>
				</c:if>

			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li><a href="#"><strong>Welcome : </strong> <c:if
							test="${not(empty sessionScope.customer)}">
               
               ${sessionScope.customer.customerName }
               
               </c:if> <c:if test="${(empty sessionScope.customer)}">
               
               Guest
               
               </c:if> </a></li>
				<li><c:if test="${not(empty sessionScope.customer)}">

						<a href="logout" class="btn"><strong> Log Out</strong></a>

					</c:if> <c:if test="${(empty sessionScope.customer)}">

						<a href="login.jsp"><strong style="color: white;">
								Log-In Here</strong></a>

					</c:if></li>
			</ul>
		</div>
		<!--/.nav-collapse -->
	</div>
</div>